<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>测试js和css的按模块加载</title>
		<script src="../assets/require.js"></script>
		<script>
			require.config({
				map: {
					'*': {
						'css': '../assets/css.min'
					}
				}
			});
		</script>
		<script src="../scripts/a2.js"></script>
	</head>

	<body>
		<p>
			test
		</p>

		<script>
			require(["moduleA"], function(ma) {
				ma.sayHello();
			});
		</script>
	</body>

</html>